package cosc455.project1;

public class VarDef {
	String original;
	String def;
	int scope;

	/**
	 * A node that contains data on the original variable and its the new
	 * definition Also includes a scope level for nodes with the same variable
	 * names but aren't visible
	 * 
	 * @param a
	 *            current variable
	 * @param b
	 *            definition of variable
	 * @param c
	 *            current scope level
	 */
	public VarDef(String a, String b, int c) {
		original = a;
		def = b;
		scope = c;
	}

	/**
	 * Gets the new definition
	 * 
	 * @return String def
	 */
	public String getNewDef() {
		return def;
	}

	/**
	 * Gets the original variable
	 * 
	 * @return String original
	 */
	public String getOldDef() {
		return original;
	}

	/**
	 * Gets the scope level integer
	 * 
	 * @return int scope
	 */
	public int getScope() {
		return scope;
	}
}
